package Chapter2.Comparing.c9.Communication;

public class ShopTest {
    public static void main(String[] args) {
        Container<BaoZi> container = new Container<>();
        Producer producer = new Producer(container,20,"大朗");

        Consumer consumer1 = new Consumer(container,4,"甲");
        Consumer consumer2 = new Consumer(container,6,"乙");
        Consumer consumer3 = new Consumer(container,7,"丙");
        Consumer consumer4 = new Consumer(container,3,"丁");

        producer.start();consumer1.start();consumer2.start();consumer3.start();consumer4.start();


    }
}
